package com.jsu.springboot_crop.entity;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Table;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Date;
@Table(name = "tb_knowledge")
@Data
public class Knowledge {
    private Integer knowledgeId;
    @NotBlank(message = "标题不能为空")
    private String title;
    @NotBlank(message = "内容不能为空")
    private String content;
    private String picPath;
    private String ownName;
    private Date createTime;
    private Date updateTime;
}
